package com.hl.service;

import com.hl.mapper.PublicWelfareMapper;
import com.hl.pojo.PublicWelfare;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PublicWelfareServiceImpl implements PublicWelfareService{
    @Autowired
    private PublicWelfareMapper mapper;
    @Override
    public Integer add(PublicWelfare publicWelfare) {
        return mapper.add(publicWelfare);
    }

    @Override
    public List<PublicWelfare> findAll() {
        return mapper.findAll();
    }

    @Override
    public Integer del(Integer id) {
        return mapper.del(id);
    }

    @Override
    public PublicWelfare findById(Integer id) {
        return mapper.findById(id);
    }

    @Override
    public Integer update(PublicWelfare publicWelfare) {
        return mapper.update(publicWelfare);
    }
}
